package connector;

import com.sun.net.httpserver.Headers;

import java.io.IOException;
import java.io.OutputStream;

public interface HttpExchangeResponse {
    // 自定义响应状态码和响应体
    Headers getResponseHeaders();
    void sendResponseHeaders(int statusCode, long responseBodyLength) throws IOException;
    void close() throws IOException;
    OutputStream getResponseBody() throws IOException;
}
